import { lazy } from "react"

export default [
    {
        path: "/home",
        component: lazy(() => import("../pages/home"))
    },
    {
        path: "/activity",
        component: lazy(() => import("../pages/activity")),
        root: "admin",  //  就是权限管理的，key  随便取，value  就是自己定义的值
    },
    {
        path: "/car",
        component: lazy(() => import("../pages/car")),
        root: "admin",  //  就是权限管理的，key  随便取，value  就是自己定义的值
    },
    {
        path: "/category",
        component: lazy(() => import("../pages/category"))
    },
    {
        path: "/list/:id",
        component: lazy(() => import("../pages/list"))
    },
    {
        path: "/login",
        component: lazy(() => import("../pages/login"))
    },
    {
        path: "/register",
        component: lazy(() => import("../pages/register"))
    },
    {
        path: "/user",
        component: lazy(() => import("../pages/user"))
    },
    {
        path: "",
        component: lazy(() => import("../pages/404"))
    },
]